<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<title th:text="${session.title}">123</title>
	<link th:replace="common/header"/>
	<link rel="stylesheet" th:href="@{/css/ace-skins.min.css}" />
    <link th:replace="common/tip"/>
    <script language="javascript" type="text/javascript" th:src="@{/js/My97DatePicker/WdatePicker.js}"></script>
</head>
	<body class="navbar-fixed">
  	<div th:replace="common/top"></div>
		<div class="container-fluid main_bg" id="main-container">
			<a id="menu-toggler" href="#"><span></span></a>
			<div th:replace="common/menu"></div>
			<div id="main-content" class="clearfix">
				<div id="page-content" class="clearfix">
					<div th:replace="common/title"></div>
					<h3 class="header smaller lighter blue"><em class="icon-list"></em>收件箱列表</h3>
					<form class="form-horizontal" th:object="${footZnxSearchForm}" method="post" th:action="@{/hy/footZnx/search}"
                          name="form" th:if="${session.footUser.qx.text != '管理员'}">
					<div class="row-fluid">
						<!--PAGE CONTENT BEGINS HERE-->
						<div class="span8">
                    		<div class="row-fluid">
                         		<button class="btn btn-danger" type="button" onclick="deleteall('/hy/footZnx/deleteall');"><em class="icon-remove-circle"></em>删除</button>
                         		<button class="btn btn-warning" type="button" onclick="tip('确定所有的站内信都标记为已读吗？', '/hy/footZnx/readall');"><em class="icon-eye-open"></em>全部标为已读</button>
                          		<a class="btn" type="button" th:href="@{/index}"><em class="icon-arrow-left"></em>返回首页</a>
                        	</div>
                        </div>
                        <div class="span4">
                       		<div class="row-fluid">
                       			<div class="span9">
							    	 <input type="text" name="znxid" class="input_fix" placeholder="关键字"/>
						        </div>
						        <div class="span3">
						        	<button class="btn btn-info" type="button" style="float: right;" onclick="pagechange(1);"><em class="icon-search"></em>查询</button>
						        </div>
                       		</div>
						</div>
					</div>
					<div class="row-fluid">
						<div class="span12">
                    		<table id="table_bug_report" class="table table-hover">
								<thead>
									<tr>
										<th class="center" style="width:60px;"><label><a onclick="selectAll(this)">全/不选</a></label></th>
										<th>发送者</th>
								        <th>接受者</th>
								        <th>发送时间</th>
								        <th class="hidden-480">内容</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<tr th:each="t:${footZnxList}">
										<td class="center"><label><input type="checkbox" name="selectIds" th:value="${t.id}"/><span class="lbl">&nbsp;</span></label></td>
										<td><a th:href="@{/hy/footZnx/view(id=${t.id})}" th:text="${t.senderName}">123</a></td>
								        <td><a th:href="@{/hy/footZnx/view(id=${t.id})}" th:text="${t.resiverName}">123</a></td>
								        <td><a th:href="@{/hy/footZnx/view(id=${t.id})}" th:text="${#dates.format(t.sendTime,'yyyy-MM-dd HH:mm:ss')}">123</a></td>
								        <td class="hidden-480"><a th:href="@{/hy/footZnx/view(id=${t.id})}" title="${t.content}" th:text="${#strings.length(t.content) > 18 ? #strings.substring(t.content ,0 ,18) + '&hellip;' : t.content}">123</a></td>
										<td><div class="inline position-relative">
											<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
												<em class="icon-cog icon-only bigger-110"></em>
											</button>
											<ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
												<li>
                                                    <a class="tooltip-error" data-rel="tooltip" title="删除" data-placement="left"
                                                       th:onclick="'javascript:deleteById(\'/hy/footZnx/delete?id=\', ' + ${t.id} + ')'">
                                                        <span class="red"><em class="icon-remove"></em></span></a>
												</li>
											</ul>
											</div>
										</td>
									</tr>
								</tbody>
								<tfoot>
							     	<tr>
							        	<td colspan="6">
                                            <div class="row-fluid" th:include="common/page :: page"></div>
							        	</td>
							     	</tr>
								</tfoot>
							</table>
                        	<!--/#page-content-->
						</div>
              			<!--/#page-content-->
					</div>
					</form>
           		</div>
				<div th:replace="common/skin :: skin"></div>
		</div><!--/#main-content-->
	</div><!--/.fluid-container#main-container-->
	<div th:replace="common/jsList"></div>
	</body>
</html>
